package io.xccit.pojo.shopcart;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * @author CH_ywx
 * @date 2023-09-18
 * @description 购物车实体类
 */
@ApiModel("购物车实体类")
@Data
@TableName("cart")
public class Cart {

    @TableId(type = IdType.AUTO)
    @JsonProperty("id")
    @JsonIgnore
    private Integer id;
    @JsonProperty("user_id")
    private Integer userId;
    @JsonProperty("product_id")
    private Integer productId;
    @JsonProperty("num")
    private Integer num;
}
